package com.summer.exception;

public class NetworkAccess {

	public Object getData() throws Exception{
		if(connect())
			throw new NetworkAccessException();
		String json = getDataJson();
		if(null == json)
			throw new DataAcquisitionException();
		Object obj = conversion(json);
		if(null == obj)
			throw new DataParsingException();
		return obj;
	}
	
	private boolean connect() {
		return false;
	}
	
	private String getDataJson(){
		return null;
	}

	private Object conversion(String json){
		return null;
	}
	
}
